﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.ywxt
{
    /// <summary>
    /// 业务系统的企业信息
    /// </summary>
    [Serializable]
    public class Enterprise
    {
        /// <summary>
        /// 企业ID
        /// </summary>
        public virtual string ent_id { get; set; }

        /// <summary>
        /// 中文名
        /// </summary>
        public virtual string ent_name_cn { get; set; }

        /// <summary>
        /// 英文名
        /// </summary>
        public virtual string ent_name_en { get; set; }

        /// <summary>
        /// 助记码
        /// </summary>
        public virtual string ent_simplecode { get; set; }

        /// <summary>
        /// 所属区域（所属城市）
        /// </summary>
        public virtual string area_id { get; set; }

        /// <summary>
        /// 中文地址
        /// </summary>
        public virtual string ent_address_cn { get; set; }

        /// <summary>
        /// 英文地址
        /// </summary>
        public virtual string ent_address_en { get; set; }

        /// <summary>
        /// 邮政编码
        /// </summary>
        public virtual string ent_post_code { get; set; }

        /// <summary>
        /// 企业创建日期
        /// </summary>
        public virtual DateTime ent_create_date { get; set; }

        /// <summary>
        /// 企业类型ID
        /// </summary>
        public virtual string ent_type_id { get; set; }

        /// <summary>
        /// 法人代表中文名
        /// </summary>
        public virtual string ent_legal_person_cn { get; set; }

        /// <summary>
        /// 法人代表英文名
        /// </summary>
        public virtual string ent_legal_person_en { get; set; }

        /// <summary>
        /// 法人代表性别
        /// </summary>
        public virtual string ent_legal_person_gender { get; set; }

        /// <summary>
        /// 企业人数类型ID
        /// </summary>
        public virtual string ent_ent_size_id { get; set; }

        /// <summary>
        /// 联系人姓名
        /// </summary>
        public virtual string ent_link_user_name { get; set; }

        /// <summary>
        /// 联系人移动电话
        /// </summary>
        public virtual string ent_link_user_mobilephone { get; set; }

        /// <summary>
        /// 联系人桌面电话
        /// </summary>
        public virtual string ent_link_user_desktophone { get; set; }

        /// <summary>
        /// 联系人传真
        /// </summary>
        public virtual string ent_link_user_fax { get; set; }

        /// <summary>
        /// 联系人EMAIL
        /// </summary>
        public virtual string ent_link_user_email { get; set; }

        /// <summary>
        /// 联系人职务
        /// </summary>
        public virtual string ent_link_user_position { get; set; }

        /// <summary>
        /// 业务范围描述，以逗号分隔
        /// </summary>
        public virtual string ent_business_scope { get; set; }

        /// <summary>
        /// 审核标识
        /// </summary>
        public virtual int mark_flag { get; set; }

        /// <summary>
        /// 是否有效标识
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public virtual DateTime create_date { get; set; }

        /// <summary>
        /// 企业标志：
        /// 0：供应商；
        /// 1：采购商；
        /// 2：二者皆是；
        /// </summary>
        public virtual string ent_flag { get; set; }

        /// <summary>
        /// 审核日期
        /// </summary>
        public virtual DateTime mark_date { get; set; }

        /// <summary>
        /// 审核人ID
        /// </summary>
        public virtual t_sys_user mark_user { get; set; }

        /// <summary>
        /// 企业参与的招标项目列表
        /// </summary>
        public virtual IList<ref_ProjectAndEnterprise> ent_projects { get; set; }

        /// <summary>
        /// 企业的联系人列表
        /// </summary>
        public virtual IList<EnterpriseUser> ent_users { get; set; }

        public Enterprise()
        {
            this.ent_projects=new List<ref_ProjectAndEnterprise>();
            this.ent_users = new List<EnterpriseUser>();
        }
    }
}
